export interface GetUserListApiParams{
    page:number,
    limit:number,
    username:string
}

/*
  "records": [
      {
        "id": 28,
        "createTime": "2022-08-30 07:57:31",
        "updateTime": "2022-08-30 07:57:31",
        "username": "111",
        "password": "698d51a19d8a121ce581499d7b701668",
        "name": "111",
        "phone": null,
        "roleName": ""
      }
    ],
    "total": 12,
*/

export interface UserItem{
    id?:number
    createTime?:string,
    updateTime?:string,
    username:string, //用户名
    nickName:string,  // 用户昵称
    password:string // 用户密码
    roleName?:string
}


export type UserList = UserItem[]

export interface GetUserListApiResponse{
    items:UserList,
    total:number
}


export interface RoleItem{
    id:number,
    roleName:string
}

export type RoleList = RoleItem[]

export interface GetUserRoleResponse{
    assignRoles:RoleList
    allRolesList:RoleList
}